package com.neusoft.neuiotms.dcam.fixed.service;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcam.fixed.dto.GoodsFileDTO;
import com.neusoft.neuiotms.dcam.fixed.model.SpareType;

public interface GoodsFileService {

    GoodsFileDTO create(GoodsFileDTO dto);

    void delete(Long id);

    GoodsFileDTO update(Long id, GoodsFileDTO dto);

    List<GoodsFileDTO> findAll();

    GoodsFileDTO details(Long id);

    Page<GoodsFileDTO> search(Pageable pageable, Searchable searchable);

    List<GoodsFileDTO> findBySpareType(SpareType sparetype);

    Workbook template();

    String upload(MultipartFile file);

    Workbook export(Searchable searchable, Pageable pageable);

    List<GoodsFileDTO> listBySpareTypeCode(String code);

}
